<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property int $friends_id
 * @property int $id
 * @property int $users_id
 * @property string $createtime
 * @property-read \app\model\Friends $friends
 * @property-read \app\model\Users $users
 * @mixin \think\Model
 */
class FriendsUsers extends Model
{
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    public function users()
    {
        return $this->belongsTo(Users::class, 'users_id');
    }

    public function friends()
    {
        return $this->belongsTo(Friends::class, 'friends_id');
    }
}
